﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FoneBuddy.LinqModel.Data;

namespace FoneBuddy.LinqModel
{
    public partial class OperatingSystemInfo
    {

        private IDataRepository _dataObject;


        public OperatingSystemInfo(IDataRepository dataObject)
            : this()
        {
            _dataObject = dataObject;
        }
        public List<OperatingSystemInfo> GetAllOs()
        {
            return _dataObject.GetAllOs();
        }
        public void Create()
        {
            _dataObject.CreateOs(this);
        }
        public void Delete()
        {
            _dataObject.DeleteOs(this);
        }
        public void Update()
        {
            _dataObject.UpdateOs(this);
        }
        public void GetOsById()
        {
            _dataObject.GetOsById(this);
        }
        public void GetOsByName()
        {
            _dataObject.GetOsByName(this);
        }
    }
}
